//
//  ActivationControl.h
//  Activation Control
//
//  Created by Keith Duncan on 01/09/2008.
//  Copyright 2008 thirty-three software. All rights reserved.
//

#import <Cocoa/Cocoa.h>

@protocol AFWeekSegmentControlDataSource;

@interface AFSegmentedWeekControl : NSControl {
	NSUInteger _sections;
	NSPointerArray *_values;
	
	NSIndexSet *_selectedSections;
	
	id <AFWeekSegmentControlDataSource> _dataSource;
	
	BOOL _tracking;
	CGPoint _initialEventLocation, _lastEventLocation;
}

- (void)reloadData;

@property (assign) IBOutlet id <AFWeekSegmentControlDataSource> dataSource;

@end

@protocol AFWeekSegmentControlDataSource <NSObject>
- (BOOL)weekview:(id)view isEnabledForDay:(AFWeekday)day;
- (void)weekview:(id)view setEnabled:(BOOL)enabled forDay:(AFWeekday)day;
@end
